package com.billiards.service.impl;

import com.billiards.dao.BulletinMapper;
import com.billiards.entity.Bulletin;
import com.billiards.service.BulletinService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BulletinServiceImpl implements BulletinService {
    @Autowired
    private BulletinMapper bulletinMapper;


    public List<Bulletin> getBullentin() {
        return bulletinMapper.getBullentin();
    }

    @Override
    public int addBulletin(Bulletin bulletin) {
        return bulletinMapper.addBulletin(bulletin);
    }

    @Override
    public int updateBulletin(Bulletin bulletin) {
        return bulletinMapper.updateBulletin(bulletin);
    }

    @Override
    public int deleteBulletin(Integer delId) {
        return bulletinMapper.deleteBulletin(delId);
    }
}
